/**
 * @author	Yitzchak Arad
 * @project	VIA, an EXE infector virus
 * @date	2011
 */

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

	/**
	 * @function	appendLineIntoUnicodeTextFile
	 * @brief		writes the null-terminated unicode string [line] to the end of the file
	 *				placed at [filename]
	 * @param		filename - may contain environment variables
	 * @note		the file will be a unicode text file
	 */
	void appendLineIntoUnicodeTextFile(const wchar_t* filename, const wchar_t* line);

	/**
	 * @function	traceDbg
	 * @brief		acts as wprintf, but prints the result formatted strinf to the debug output,
	 *				and to a debug-log file.
	 * @note		the formetted message is bounded up to 1024 bytes.
	 */
	void _cdecl traceDbg(const wchar_t* fmt, ...);

#ifdef __cplusplus
};
#endif